package com.zynn.feign.module.calculate;

import com.zynn.common.pojo.result.Result;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;
import java.util.Set;


/**
 * 对应RecommendController的接口
 * @author 刘猛
 */
@RequestMapping("/group")
@FeignClient(value = "service-module-calculate")
public interface GroupBehaviorService {

    /**
     * 共同好友数量
     * @return
     */
    @GetMapping("/getEventOnceUpGroups")
    Result<List<Map<String,Object>>> getEventOnceUpGroups();

    @GetMapping("/likesUpThree")
    Result<List<Map<String,Object>>> likesUpThree();

    @PostMapping("/groupCahe/save")
    Result groupCaheSave(@RequestParam("userId") Long userId,
                         @RequestParam("groupId") Long groupId,
                         @RequestParam("groupName")String groupName,
                         @RequestParam("picCount") int picCount);


    @PostMapping("/deleteGroupPushCacheDataToday")
    Result deleteGroupPushCacheDataToday();

    @GetMapping("/newEmptyGroup")
    Result<Set<Long>> newEmptyGroup();


}
